package pacman.entries.pacman.meta_graph.features;

import javax.xml.bind.TypeConstraintException;

import pacman.entries.pacman.meta_graph.IMetaGraphFeature;
import pacman.entries.pacman.meta_graph.IMetaGraphObject;
import pacman.entries.pacman.meta_graph.MetaGraph;
import pacman.entries.pacman.meta_graph.MetaGraphEdge;
import pacman.entries.pacman.meta_graph.MetaGraphNode;
import pacman.entries.pacman.meta_graph.MetaGraphPath;
import pacman.game.Game;
import pacman.game.Constants.DM;

public class EdgeFeatureNumPills implements IMetaGraphFeature {

	@Override
	public float Evaluate(IMetaGraphObject object, Game game) {
		
		MetaGraphEdge edge = (MetaGraphEdge) object;
		
		int index = game.getPacmanCurrentNodeIndex();
		
		MetaGraphEdge currentEdge = MetaGraph.currentGraph().getEdgeFromGraphNode(index);
		
		return edge.getPillCount();
	}

}
